package com.seven.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
public class GlobalException {

	@ExceptionHandler(value = MyException.class)
    @ResponseBody
    public String globalException(){
		
		return "我是controller发生的异常处理";
	}
}
